package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.account.register.IRegisterPresenter
import com.hxd.mall.module.account.register.IRegisterView
import com.hxd.mall.module.account.register.RegisterActivity
import com.hxd.mall.module.account.register.RegisterPresenter
import dagger.Binds
import dagger.Module

/**
 * @author zhaoyong
 * @description:
 * @date :2019-10-15 15:29
 */
@Module
abstract class RegisterModule {
    @Binds
    internal abstract fun bindView(activity: RegisterActivity): IRegisterView

    @ActivityScope
    @Binds
    abstract fun provideMainPresenter(presenter: RegisterPresenter): IRegisterPresenter
}